// 统一管理请求接口
import qs from "qs";
// 引入环境,请求路径
import baseUrl from "@/request/request";

// 精品推荐的请求接口
export const recommendAPI = () => baseUrl.get("/products/recommend");

// 获取验证信息
export const sendSMSAPI = (params) =>
  baseUrl.post("/sendSMS", qs.stringify(params));

// 手机号登录
export const phoneLoginAPI = (params) =>
  baseUrl.post("/phoneRegin", qs.stringify(params));
  
  // 微信扫码登录
  export const WXLoginAPI = (params) =>
  baseUrl.post("/wechatUsers/PCLogin", qs.stringify(params));
  
  // 绑定手机号接口
  export const bdPhoneAPI = (params) =>
  baseUrl.post("/wechatUsers/binding", qs.stringify(params));
  

